<template>
  <div class="bgColor">
    <div style="padding:50px 80px">
      <el-page-header @back="goBack"> </el-page-header>
      <div class="artText">
        <h2>{{ info.title }}</h2>
      </div>
      <div class="artContent">
        <span style="margin-right: 30px;"
          >发布时间：{{ info.createTime }}</span
        >
        <span>创建人：{{ info.createUserName }}</span>
      </div>
      <div class="content" v-html="info.content"></div>
    </div>
  </div>
</template>
<script>
import _ from "lodash";

export default {
  data() {
    return {
      info: {}
    };
  },
  created() {
    this.info = this.$route.params.row
  },
  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>
<style scoped>
.content {
  margin-top: 30px;
}
.content /deep/ p {
  font-size: 16px !important;
}
.artContent {
  text-align: center;
  padding: 30px 0;
  color: gray;
  border-bottom: 1px solid rgba(224, 238, 249, 1);
}
.bgColor {
  margin: 50px 200px;
  background-color: white;
}
.artText {
  text-align: center;
  font-size: 25px;
  font-weight: bold;
}
</style>
